﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ConfigureView
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%using(var form = Html.BeginForm())
  {%>
    <div class="formItem">
        <label>Show Attributes:</label>
        <div class="formBox" style="height:200px;width:400px;overflow:auto;">
            <%
      foreach (var attribute in (IEnumerable<string>) this.ViewData["Attributes"])
      {%>
            <div><input type="checkbox" value="<%=attribute %>" name="attributes" <%=(((IEnumerable<string>)this.ViewData["SelectedAttributes"]).Contains(attribute) ? "checked": "" )%>/> <%=attribute%></div>
            <%
      }%>
        </div>
    </div>
    <div class="formItem">
        <button name="submit" value="save">Save</button>
        <button name="submit" value="cancel">Cancel</button>
    </div>
<%
  }%>
</asp:Content>
